import request from '@/utils/request'

//获取反馈信息接口
export const getFeedbackAPI = (status, page, pageSize) => {
  return request.get('/admin/feedback', {
    params: {
      status,
      page,
      pageSize
    }
  })
}

//修改用户反馈状态接口（已解决是1,未解决是0）
export const updateFeedbackAPI = (feedbackId, status) => {
  return request.post('/admin/feedback', null, {
    params: { feedbackId, status }
  })
}

//删除用户反馈接口
export const deleteFeedbackAPI = (feedbackId) => {
  return request.delete(`/admin/feedback?feedbackId=${feedbackId}`)
}
